﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
namespace OnlineManagement.IDAL
{
   public interface IProcedureHandle
    {
       /// <summary>
        /// get 3 tables PigSource,PropagateState,PigBreed information
       /// </summary>
       /// <returns></returns>
       DataSet GetPigBaseInfoProcedure(int hoggeryId);

       DataSet GetHogInfoForPurchase(int hoggeryId);

       int AddPigPen(OnlineManagement.Model.PigPen pigPen, out string returnValue);

       /// <summary>
       /// pigs grow phase changes,包括hog 和piglets成长阶段的改变
       /// </summary>
       /// <param name="hogID"></param>
       /// <param name="pigletID"></param>
       /// <param name="phaseFromID"></param>
       /// <param name="phaseToID"></param>
       /// <param name="changedDate"></param>
       /// <param name="pigPendID"></param>
       /// <param name="message"></param>
       /// <returns></returns>
       bool HogsGrowPhaseChanged(int? hogID, int? pigletID, int phaseFromID, int phaseToID, DateTime changedDate,Guid? pigPendID,out string message);
    }
}
